﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkPlanAdd.aspx.cs" Inherits="ITOMMS.Web.InsideManage.WorkPlanAdd" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>工作计划添加</title>
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../css/skin/qq/ymPrompt.css" />
    <link rel="stylesheet" id='Link1' type="text/css" href="../css/jquery.Validator.Tooltip.css" />

    <script type="text/javascript" src="../js/jquery.pack.js"></script>

    <script type="text/javascript" src="../js/jquery.Validator.js"></script>

    <script type="text/javascript" src="../js/ymPrompt.js"></script>

    <!--用到日期控件才使用-->

    <script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>


</head>
<body>
    <form id="aspnetForm" runat="server">
        <div id="message" style="background-color: Red">
        </div>
        <table class="tblDataArea" width="100%">
            <tr class="tblQueryArea">
                <td class="tblDataCaption" colspan="4">
                    <div style="width: 210px;" class="title">
                        <img src="../images/lv3.gif" style="margin-bottom: -3px;" alt="" />工作计划添加</div>
                    <asp:Button ID="Button1" CssClass="cssButton" runat="server" Text="返回" OnClick="Button1_Click"  /></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 162px">
                    姓名：
                </td>
                <td class="tdQueryField">
                    <asp:DropDownList ID="ddlRealName" runat="server">
                    </asp:DropDownList>*</td>
                <td class="tdQueryCaption">
                    职位：</td>
                <td class="tdQueryField">
                    <asp:DropDownList ID="ddlPosition" runat="server">
                    </asp:DropDownList>*</td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 162px">
                    部门：</td>
                <td class="tdQueryField">
                    <asp:DropDownList ID="ddlDepartment" runat="server">
                    </asp:DropDownList>*</td>
                <td class="tdQueryCaption">
                    日期：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txtDoDate" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd'});"
                        onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox>*</td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 162px">
                    计划时间：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txtDate_Bgn" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd'});"
                        onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox>-<asp:TextBox
                            ID="txtDate_End" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                            onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd'});"
                            onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox>*
                   </td>
                <td class="tdQueryField">
                </td>
                <td class="tdQueryField">
                </td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 162px; height: 200px;">
                    工作计划内容：</td>
                <td class="tdQueryField" colspan="3" style="height: 200px">
                    <asp:TextBox ID="txtContent" runat="server" Height="200px" TextMode="MultiLine" Width="580px"></asp:TextBox>*<br />
                    （如：工作内容、开展时间、参加人员、地点、负责人等）</td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 162px; height: 200px">
                    工作计划总结：</td>
                <td class="tdQueryField" colspan="3" style="height: 200px">
                    <asp:TextBox ID="txtSummary" runat="server" Height="200px" TextMode="MultiLine" Width="580px"></asp:TextBox>*<br />
                    (如：执行情况描述、运行中存在的问题、整改措施、建议等)</td>
            </tr>
            <tr>
                <td class="tblDataCaption" style="width: 162px">
                </td>
                <td class="tblDataCaption">
                    <asp:Button ID="btnSave" CssClass="cssButton" runat="server" Text="提交" OnClientClick="javascript:return confirm('你确认要提交吗?');"
                        OnClick="btnSave_Click" /></td>
                <td class="tblDataCaption">
                </td>
                <td class="tblDataCaption">
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

<script type="text/javascript">

function check()
{
	if($.GetValidResult())/*验证表单*/
	{	
	    return true; 
	}
	else
	{
	    return false;
	}
}

    
    $("#ddlPosition").attr("dataType","OverEqualsZero");
    $("#ddlPosition").attr("tip", "请选择职位");
    
    $("#ddlDepartment").attr("dataType","OverEqualsZero");
    $("#ddlDepartment").attr("tip", "请选择部门");
    
    
    $("#txtDate_Bgn").attr("dataType","Require");
    $("#txtDate_Bgn").attr("tip", " ");
    
    $("#txtDate_End").attr("dataType","Require");
    $("#txtDate_End").attr("tip", " ");
    
    $("#txtContent").attr("dataType","Require");
    $("#txtContent").attr("tip", " ");
    
                
</script>
    